<div id="top_menu">
	<?php
	foreach ($menu as $menu_item):
		//$this->load->view($menu_item);
		if ($menu_item == "nf_select") {
			echo "<div class=\"menu_item\">";
			echo anchor('newsfeed/select', 'Your newsfeeds', array('class' => 'menu_link'));
			echo "</div>";
		} elseif ($menu_item == "nf_create") {
			echo "<div class=\"menu_item\">";
			echo anchor('newsfeed/create', 'Create newsfeed', array('class' => 'menu_link'));
			echo "</div>";
		} elseif ($menu_item == "logout") {
			echo "<div class=\"menu_item\">";
			echo anchor('auth/logout', 'Logout (' . $this->session->userdata('username') . ')', array('class' => 'menu_link'));
			echo "</div>";
		}
		
		
	endforeach;
	?>
</div>
